//
// Table.cpp for 202loi in /home/morel_t//Rendu/maths/202loi
// 
// Made by thomas morel
// Login   <morel_t@epitech.net>
// 
// Started on  Fri Mar  9 14:35:40 2012 thomas morel
// Last update Fri Mar  9 15:04:14 2012 thomas morel
//

#include <iostream>
#include "Table.hh"

Table::Table(int x, int y) : x(x), y(y)
{
  this->sTab = new std::string *[y];
  for (int i = 0; i < y; i++)
    this->sTab[i] = new std::string[x];
}

Table::~Table()
{
}

int		Table::getX() const
{
  return (this->x);
}

int		Table::getY() const
{
  return (this->y);
}

std::string	**Table::getSTab()
{
  return (this->sTab);
}

void		Table::printTab() const
{
  for (int y = 0; y < this->y; y++)
    {
      for (int x = 0; x < this->x; x++)
	std::cout << sTab[y][x] << "\t" << std::flush;
      std::cout << std::endl;
    }
}
